package com.mrdeer.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mrdeer.user.api.dto.resource.ApplicationDTO;
import com.mrdeer.user.api.dto.resource.ApplicationQueryParams;
import com.mrdeer.user.api.entity.ResourceApplication;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/8 0008 9:24
 */
@Repository
public interface ResourceApplicationMapper extends BaseMapper<ResourceApplication> {

    List<ApplicationDTO> selectAppByPage(@Param("page")Page<ApplicationDTO> page, @Param("query")ApplicationQueryParams query);
}
